package com.yanqu.road.entity.activity.yingxin.game;

import java.util.Arrays;

public class YingXinLine {

    // 值为颜色（-1宝箱，0空，其他大于0的数对应一种颜色）
    private int[] balls;

    private int y;

    public YingXinLine clone() {
        YingXinLine line = new YingXinLine();
        line.setY(this.y);
        line.setBalls(Arrays.copyOf(this.balls, this.balls.length));
        return line;
    }

    public YingXinLine() {
    }

    public YingXinLine(int y, int[] balls) {
        this.balls = balls;
        this.y = y;
    }

    public int[] getBalls() {
        return balls;
    }

    public void setBalls(int[] balls) {
        this.balls = balls;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

}
